<?php if (!defined('THINK_PATH')) exit(); /*a:7:{s:31:"themes/aylt/portal/article.html";i:1520870216;s:60:"/data/home/byu3313560001/htdocs/themes/aylt/public/head.html";i:1520869999;s:64:"/data/home/byu3313560001/htdocs/themes/aylt/public/function.html";i:1520869999;s:62:"/data/home/byu3313560001/htdocs/themes/aylt/public/navTop.html";i:1520869999;s:59:"/data/home/byu3313560001/htdocs/themes/aylt/public/nav.html";i:1521390824;s:62:"/data/home/byu3313560001/htdocs/themes/aylt/public/footer.html";i:1520869999;s:63:"/data/home/byu3313560001/htdocs/themes/aylt/public/scripts.html";i:1520869999;}*/ ?>
<!DOCTYPE html>
<html>
<head>
    <title> <?php echo (isset($site_info['site_name']) && ($site_info['site_name'] !== '')?$site_info['site_name']:''); ?></title>
    <meta name="keywords" content="<?php echo (isset($site_info['site_seo_keywords']) && ($site_info['site_seo_keywords'] !== '')?$site_info['site_seo_keywords']:''); ?>"/>
    <meta name="description" content="<?php echo (isset($site_info['site_seo_description']) && ($site_info['site_seo_description'] !== '')?$site_info['site_seo_description']:''); ?>">
    
<?php 
/*可以加多个方法哟！*/
function _sp_helloworld(){
	echo "hello ThinkCMF!";
}

function _sp_helloworld2(){
	echo "hello ThinkCMF2!";
}


function _sp_helloworld3(){
	echo "hello ThinkCMF3!";
}

 ?>
<meta name="author" content="爱悦蓝天">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">

<!-- Set render engine for 360 browser -->
<meta name="renderer" content="webkit">

<!-- No Baidu Siteapp-->
<meta http-equiv="Cache-Control" content="no-siteapp"/>

<!-- HTML5 shim for IE8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<![endif]-->
<link rel="icon" href="/themes/aylt/public/assets/images/logo.png" type="image/png">
<link rel="shortcut icon" href="/themes/aylt/public/assets/images/logo.png" type="image/png">
<link href="/themes/aylt/public/assets/simpleboot3/themes/simpleboot3/bootstrap.min.css" rel="stylesheet">
<link href="/themes/aylt/public/assets/simpleboot3/font-awesome/4.4.0/css/font-awesome.min.css" rel="stylesheet"
      type="text/css">
<!--[if IE 7]>
<link rel="stylesheet" href="/themes/aylt/public/assets/simpleboot3/font-awesome/4.4.0/css/font-awesome-ie7.min.css">
<![endif]-->
<link href="/themes/aylt/public/assets/css/style.css?{random()}" rel="stylesheet">
<style>
    /*html{filter:progid:DXImageTransform.Microsoft.BasicImage(grayscale=1);-webkit-filter: grayscale(1);}*/
    #backtotop {
        position: fixed;
        bottom: 50px;
        right: 20px;
        display: none;
        cursor: pointer;
        font-size: 50px;
        z-index: 9999;
    }

    #backtotop:hover {
        color: #333
    }

    #main-menu-user li.user {
        display: none
    }
</style>
<script type="text/javascript">
    //全局变量
    var GV = {
        ROOT: "/",
        WEB_ROOT: "/",
        JS_ROOT: "static/js/"
    };
</script>
<script src="/themes/aylt/public/assets/js/jquery-1.10.2.min.js"></script>
<script src="/themes/aylt/public/assets/js/jquery-migrate-1.2.1.js"></script>
<script src="/static/js/wind.js"></script>
	
    <link href="/themes/aylt/public/assets/css/slippry/slippry.css" rel="stylesheet">
    <style>
        .caption-wraper {
            position: absolute;
            left: 50%;
            bottom: 2em;
        }

        .caption-wraper .caption {
            position: relative;
            left: -50%;
            background-color: rgba(0, 0, 0, 0.54);
            padding: 0.4em 1em;
            color: #fff;
            -webkit-border-radius: 1.2em;
            -moz-border-radius: 1.2em;
            -ms-border-radius: 1.2em;
            -o-border-radius: 1.2em;
            border-radius: 1.2em;
        }

        .tc-gridbox {
            margin: 0;
        }

        @media (max-width: 767px) {
            .caption-wraper {
                left: 0;
                bottom: 0.4em;
            }

            .caption-wraper .caption {
                left: 0;
                padding: 0.2em 0.4em;
                font-size: 0.92em;
                -webkit-border-radius: 0;
                -moz-border-radius: 0;
                -ms-border-radius: 0;
                -o-border-radius: 0;
                border-radius: 0;
            }
        }

        #article_content img {
            width: 100%;
        }

    </style>
    <?php 
    \think\Hook::listen('before_head_end',$temp5ab756bdb7d17,null,false);
 ?>
</head>
<body class="body-white" style="position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top:0;
    background: #eaeaea;
">
<?php if($category['parent_id']==0): ?>
    <a href="/" target="_self">
    <img src="<?php echo cmf_get_image_preview_url($site_info['site_logo']); ?>" class="logo">
</a>
<nav id="topNav" class="navbar navbar-default navbar-fixed-top active">
    <div>
        <div class="collapse navbar-collapse active" id="bs-example-navbar-collapse-1">
            <ul class="nav">
                <?php

function __parse_navigationf81c761b2b7bebae2891d219a467dcd5($menus,$level=1){
$_parse_navigation_func_name = '__parse_navigationf81c761b2b7bebae2891d219a467dcd5';
if(is_array($menus) || $menus instanceof \think\Collection || $menus instanceof \think\Paginator): if( count($menus)==0 ) : echo "" ;else: foreach($menus as $key=>$menu): if(empty($menu['children'])): ?>
    
                        <li class="menu-item menu-item-level-<?php echo $level; ?> levelgt1">
                            <a href="<?php echo (isset($menu['href']) && ($menu['href'] !== '')?$menu['href']:''); ?>" target="<?php echo (isset($menu['target']) && ($menu['target'] !== '')?$menu['target']:''); ?>">
                                <?php echo (isset($menu['name']) && ($menu['name'] !== '')?$menu['name']:''); ?>
                            </a>
                        </li>
                    
<?php endif; endforeach; endif; else: echo "" ;endif; 
}
    $navMenuModel = new \app\admin\model\NavMenuModel();
    $menus = $navMenuModel->navMenusTreeArray('4',0);
if(''==''): ?>
    <?php echo __parse_navigationf81c761b2b7bebae2891d219a467dcd5($menus); else: ?>
    < id="" class="nav navbar-nav navbar-nav-custom">
        <?php echo __parse_navigationf81c761b2b7bebae2891d219a467dcd5($menus); ?>
    </>
<?php endif; ?>

                <li class="menu-item menu-item-level-1 levelgt1" style="height: 50px">

                </li>
                <?php

function __parse_navigationfaf8760bc2e1aa204c3eb9dd7e8907d0($menus,$level=1){
$_parse_navigation_func_name = '__parse_navigationfaf8760bc2e1aa204c3eb9dd7e8907d0';
if(is_array($menus) || $menus instanceof \think\Collection || $menus instanceof \think\Paginator): if( count($menus)==0 ) : echo "" ;else: foreach($menus as $key=>$menu): if(empty($menu['children'])): ?>
    
                        <li class="menu-item menu-item-level-<?php echo $level; ?> levelgt1">
                            <a href="<?php echo (isset($menu['href']) && ($menu['href'] !== '')?$menu['href']:''); ?>" target="<?php echo (isset($menu['target']) && ($menu['target'] !== '')?$menu['target']:''); ?>">
                                <?php echo (isset($menu['name']) && ($menu['name'] !== '')?$menu['name']:''); ?>
                            </a>
                        </li>
                    
<?php endif; endforeach; endif; else: echo "" ;endif; 
}
    $navMenuModel = new \app\admin\model\NavMenuModel();
    $menus = $navMenuModel->navMenusTreeArray('5',0);
if(''==''): ?>
    <?php echo __parse_navigationfaf8760bc2e1aa204c3eb9dd7e8907d0($menus); else: ?>
    < id="" class="nav navbar-nav navbar-nav-custom">
        <?php echo __parse_navigationfaf8760bc2e1aa204c3eb9dd7e8907d0($menus); ?>
    </>
<?php endif; ?>

            </ul>
        </div>
    </div>
</nav>

    <?php else: ?>
    <a href="/" target="_self">
    <img src="<?php echo cmf_get_image_preview_url($site_info['site_logo']); ?>" class="logo">
</a>
<?php 
    $len= count($categorys);
 ?>
<div class="navbar navbar-default navbar-fixed-top">
    <div style="width: 1280px;margin: auto">
        <ul class="nav" style="width: 540px;float: left;display:flex">
            <?php if($len==4||$len==3): if(is_array($categorys) || $categorys instanceof \think\Collection || $categorys instanceof \think\Paginator): $i = 0;$__LIST__ = is_array($categorys) ? array_slice($categorys,0,2, true) : $categorys->slice(0,2, true); if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                    <li class="menu-item menu-item-level-1">
                        <a href="/portal/list/all/id/<?php echo $vo['id']; ?>.html" class="<?php echo $vo['id']==$category['id']?'menu-active':''; ?>">
                            <?php echo $vo['name']; ?>
                        </a>
                    </li>
                <?php endforeach; endif; else: echo "" ;endif; endif; if($len==5||$len==6): if(is_array($categorys) || $categorys instanceof \think\Collection || $categorys instanceof \think\Paginator): $i = 0;$__LIST__ = is_array($categorys) ? array_slice($categorys,0,3, true) : $categorys->slice(0,3, true); if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                    <li class="menu-item menu-item-level-1">
                        <a href="/portal/list/all/id/<?php echo $vo['id']; ?>.html" class="<?php echo $vo['id']==$category['id']?'menu-active':''; ?>">
                            <?php echo $vo['name']; ?>
                        </a>
                    </li>
                <?php endforeach; endif; else: echo "" ;endif; endif; if($len==7||$len==8): if(is_array($categorys) || $categorys instanceof \think\Collection || $categorys instanceof \think\Paginator): $i = 0;$__LIST__ = is_array($categorys) ? array_slice($categorys,0,4, true) : $categorys->slice(0,4, true); if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                    <li class="menu-item menu-item-level-1">
                        <a href="/portal/list/all/id/<?php echo $vo['id']; ?>.html" class="<?php echo $vo['id']==$category['id']?'menu-active':''; ?>">
                            <?php echo $vo['name']; ?>
                        </a>
                    </li>
                <?php endforeach; endif; else: echo "" ;endif; endif; ?>
        </ul>
        <ul class="nav" style="width: 540px;margin-left:200px;float: left;display:flex">
            <?php if($len==4||$len==5): if(is_array($categorys) || $categorys instanceof \think\Collection || $categorys instanceof \think\Paginator): $i = 0;$__LIST__ = is_array($categorys) ? array_slice($categorys,2,null, true) : $categorys->slice(2,null, true); if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                    <li class="menu-item menu-item-level-1">
                        <a href="/portal/list/all/id/<?php echo $vo['id']; ?>.html"
                           class="<?php echo $vo['id']==$category['id']?'menu-active':''; ?>">
                            <?php echo $vo['name']; ?>
                        </a>
                    </li>
                <?php endforeach; endif; else: echo "" ;endif; endif; if($len==6): if(is_array($categorys) || $categorys instanceof \think\Collection || $categorys instanceof \think\Paginator): $i = 0;$__LIST__ = is_array($categorys) ? array_slice($categorys,3,null, true) : $categorys->slice(3,null, true); if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                    <li class="menu-item menu-item-level-1">
                        <a href="/portal/list/all/id/<?php echo $vo['id']; ?>.html"
                           class="<?php echo $vo['id']==$category['id']?'menu-active':''; ?>">
                            <?php echo $vo['name']; ?>
                        </a>
                    </li>
                <?php endforeach; endif; else: echo "" ;endif; endif; if($len==7): if(is_array($categorys) || $categorys instanceof \think\Collection || $categorys instanceof \think\Paginator): $i = 0;$__LIST__ = is_array($categorys) ? array_slice($categorys,4,null, true) : $categorys->slice(4,null, true); if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                    <li class="menu-item menu-item-level-1">
                        <a href="/portal/list/all/id/<?php echo $vo['id']; ?>.html"
                           class="<?php echo $vo['id']==$category['id']?'menu-active':''; ?>">
                            <?php echo $vo['name']; ?>
                        </a>
                    </li>
                <?php endforeach; endif; else: echo "" ;endif; endif; ?>
        </ul>
    </div>
</div>
<?php endif; ?>

<div>
    <ul id="home-slider" class="list-unstyled">
        <?php
     $__SLIDE_ITEMS__ = \app\admin\service\ApiService::slides($category['list_order']);
if(is_array($__SLIDE_ITEMS__) || $__SLIDE_ITEMS__ instanceof \think\Collection || $__SLIDE_ITEMS__ instanceof \think\Paginator): $i = 0; $__LIST__ = $__SLIDE_ITEMS__;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>

            <li>
                <a>
                    <div style="height: 550px;width: 100%;background:url('<?php echo cmf_get_image_url($vo['image']); ?>') center;background-size:100% auto;">

                    </div>
                </a>
            </li>
        
<?php endforeach; endif; else: echo "" ;endif; ?>
    </ul>
</div>

<div class="container tc-main" style="border-radius: 10px;background: #ffffff;padding: 20px 0;">
    <div class="row">
        <div class="col-md-12">
            <div class="tc-box article-box">
                <h2 style="text-align: center;color:#20296F;"><?php echo $article['post_title']; ?></h2>
                <div class="article-infobox">
                    <span>
		    			<a href="javascript:;"><i class="fa fa-eye"></i><span><?php echo $article['post_hits']; ?></span></a>
						<a href="<?php echo url('portal/Article/doLike',array('id'=>$article['id'])); ?>" class="js-count-btn"><i
                                class="fa fa-thumbs-up"></i><span class="count"><?php echo $article['post_like']; ?></span></a>
						<a href="<?php echo url('user/favorite/add'); ?>"
                           class="js-favorite-btn"
                           data-title="<?php echo base64_encode($article['post_title']); ?>"
                           data-url="<?php echo cmf_url_encode('portal/Article/index',array('id'=>$article['id'])); ?>"
                           data-table="portal_post"
                           data-id="<?php echo $article['id']; ?>"
                        >
							<i class="fa fa-star-o"></i>
						</a>
					</span>
                </div>
                <hr>
                <?php 
                    $before_content_hook_param=[
                    'object_id'=>$article['id'],
                    'table_name'=>'portal_post',
                    'object_title'=>$article['post_title'],
                    'user_id'=>$article['user_id'],
                    'url'=>cmf_url_encode('portal/Article/index',array('id'=>$article['id'],'cid'=>$category['id'])),
                    'object'=>$article
                    ];
                 
    \think\Hook::listen('before_content',$before_content_hook_param,null,false);
 ?>

                <div id="article_content">
                    <?php echo $article['post_content']; ?>
                </div>

                <?php 
                    $after_content_hook_param=[
                    'object_id'=>$article['id'],
                    'table_name'=>'portal_post',
                    'object_title'=>$article['post_title'],
                    'user_id'=>$article['user_id'],
                    'url'=>cmf_url_encode('portal/Article/index',array('id'=>$article['id'],'cid'=>$category['id'])),
                    'object'=>$article
                    ];
                 
    \think\Hook::listen('after_content',$after_content_hook_param,null,false);
 ?>
            </div>
        </div>
    </div>
</div>
<div id="footer" class="footer">
    <?php 
    \think\Hook::listen('footer_start',$temp5ab756bdb7dfc,null,false);
 ?>
    <div style="height: 50px;width:1280px;bottom: 0;position: absolute;left: 50%;transform:translateX(-50%)">
        <div class="collapse navbar-collapse active" id="bs-example-navbar-collapse-1">
            <ul id="main-menu" class="navbar-nav">
                <li>
                    <?php if(!(empty($site_info['site_icp']) || (($site_info['site_icp'] instanceof \think\Collection || $site_info['site_icp'] instanceof \think\Paginator ) && $site_info['site_icp']->isEmpty()))): ?>
                        <a href="http://www.miitbeian.gov.cn/" style="font-size: 12px"
                           target="_blank"><?php echo $site_info['site_icp']; ?></a>
                    <?php endif; ?>
                </li>
                <?php

function __parse_navigation97b39c2246130f9adfc301a7b4ded0c6($menus,$level=1){
$_parse_navigation_func_name = '__parse_navigation97b39c2246130f9adfc301a7b4ded0c6';
if(is_array($menus) || $menus instanceof \think\Collection || $menus instanceof \think\Paginator): if( count($menus)==0 ) : echo "" ;else: foreach($menus as $key=>$menu): if(empty($menu['children'])): if($level > 1): ?>
                            <li class="menu-item menu-item-level-<?php echo $level; ?> levelgt1">
                                <a href="<?php echo (isset($menu['href']) && ($menu['href'] !== '')?$menu['href']:''); ?>" target="<?php echo (isset($menu['target']) && ($menu['target'] !== '')?$menu['target']:''); ?>">
                                    <?php echo (isset($menu['name']) && ($menu['name'] !== '')?$menu['name']:''); ?>
                                </a>
                            </li>
                            <?php else: ?>
                            <li class="menu-item menu-item-level-<?php echo $level; ?>">
                                <a href="<?php echo (isset($menu['href']) && ($menu['href'] !== '')?$menu['href']:''); ?>" target="<?php echo (isset($menu['target']) && ($menu['target'] !== '')?$menu['target']:''); ?>">
                                    <?php echo (isset($menu['name']) && ($menu['name'] !== '')?$menu['name']:''); ?>
                                </a>
                            </li>
                        <?php endif; endif; if(!empty($menu['children'])): ?>
    <li class="dropdown dropdown-custom dropdown-custom-level-<?php echo $level; ?>">
        
                        <a href="#" class="dropdown-toggle dropdown-toggle-<?php echo $level; ?>" data-toggle="dropdown">
                            <?php echo (isset($menu['name']) && ($menu['name'] !== '')?$menu['name']:''); ?><span class="caret"></span>
                        </a>
                    
        <ul class="dropdown-menu dropdown-menu-level-<?php echo $level; ?>">
            <?php 
            $mLevel=$level+1;
             ?>
            <?php echo $_parse_navigation_func_name($menu['children'],$mLevel); ?>
        </ul>
    </li>
<?php endif; endforeach; endif; else: echo "" ;endif; 
}
    $navMenuModel = new \app\admin\model\NavMenuModel();
    $menus = $navMenuModel->navMenusTreeArray('',0);
if(''==''): ?>
    <?php echo __parse_navigation97b39c2246130f9adfc301a7b4ded0c6($menus); else: ?>
    < id="main-navigation" class="nav navbar-nav navbar-nav-custom">
        <?php echo __parse_navigation97b39c2246130f9adfc301a7b4ded0c6($menus); ?>
    </>
<?php endif; ?>

            </ul>
            <ul class="footer-link">
                <?php
     $__LINKS__ = \app\admin\service\ApiService::links();
if(is_array($__LINKS__) || $__LINKS__ instanceof \think\Collection || $__LINKS__ instanceof \think\Paginator): $i = 0; $__LIST__ = $__LINKS__;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>

                    <li>
                        <?php if(!(empty($vo['code']) || (($vo['code'] instanceof \think\Collection || $vo['code'] instanceof \think\Paginator ) && $vo['code']->isEmpty()))): ?>
                            <img class="code-img" src="<?php echo cmf_get_image_preview_url($vo['code']); ?>">
                        <?php endif; ?>
                        <a href="<?php echo $vo['url']; ?>" target="<?php echo $vo['target']; ?>">
                            <span><?php echo $vo['name']; ?></span>
                            <img style="height: 20px" src="<?php echo cmf_get_image_preview_url($vo['image']); ?>"/>
                        </a>
                    </li>
                
<?php endforeach; endif; else: echo "" ;endif; ?>
            </ul>
        </div>
    </div>
</div>
<div id="backtotop">
    <i class="fa fa-arrow-circle-up"></i>
</div>


<style>
    .footer {
        display: block;
        animation-name: footerInAn;
        position: relative;
    }

    .footer-link {
        height: 40px;
    }

    .footer-link .code-img {
        bottom: 0;
    }

    #topNav {
        animation-name: topNavInAn;
    }

</style>
<!-- /container -->
<!-- Le javascript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="/themes/aylt/public/assets/simpleboot3/bootstrap/js/bootstrap.min.js"></script>
    <script src="/static/js/frontend.js"></script>
	<script>
	$(function(){
		$("#main-menu li.dropdown").hover(function(){
			$(this).addClass("open");
		},function(){
			$(this).removeClass("open");
		});
		
		$("#main-menu a").each(function() {
			if ($(this)[0].href == String(window.location)) {
				$(this).parentsUntil("#main-menu>ul>li").addClass("active");
			}
		});
		
		$.post("<?php echo url('user/index/isLogin'); ?>",{},function(data){
		    console.log(data);
			if(data.code==1){
				if(data.data.user.avatar){
				}

				$("#main-menu-user span.user-nickname").text(data.data.user.user_nickname?data.data.user.user_nickname:data.data.user.user_login);
				$("#main-menu-user li.login").show();
                $("#main-menu-user li.offline").hide();

			}

			if(data.code==0){
                $("#main-menu-user li.login").hide();
				$("#main-menu-user li.offline").show();
			}

		});

        ;(function($){
			$.fn.totop=function(opt){
				var scrolling=false;
				return this.each(function(){
					var $this=$(this);
					$(window).scroll(function(){
						if(!scrolling){
							var sd=$(window).scrollTop();
							if(sd>100){
								$this.fadeIn();
							}else{
								$this.fadeOut();
							}
						}
					});
					
					$this.click(function(){
						scrolling=true;
						$('html, body').animate({
							scrollTop : 0
						}, 500,function(){
							scrolling=false;
							$this.fadeOut();
						});
					});
				});
			};
		})(jQuery); 
		
		$("#backtotop").totop();
		
		
	});
	</script>


<script src="/themes/aylt/public/assets/js/slippry.min.js"></script>
<script>
    $(function () {
        var trans = ['fade', 'horizontal']
        var tran = trans[Math.floor(Math.random() * 1 + 1)]
        $(".list-unstyled").slippry({
            transition: tran,
            useCSS: true,
            captions: false,
            speed: 1000,
            pause: 2000,
            auto: true,
            preload: 'visible',
            controls: true
        });
        $(".list-unstyled").show();
    });
</script>
<?php 
    \think\Hook::listen('before_body_end',$temp5ab756bdb7e91,null,false);
 ?>
</body>
</html>
